package com.jack.blog.dao;

import com.jack.blog.entity.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {

    List<Category> queryBlogCategories(@Param("uid")int uid);

    Category queryBlogCategory(@Param("id") int id);
    int queryDefaultCid(@Param("uid")int uid);

    void insertBlogCategory(@Param("category")Category category);

    void updateBlogCategory(@Param("id") int id, @Param("value")String value, @Param("introduction")String introduction, @Param("blog")int blog);

    void deleteBlogCategory(@Param("id") int id);
}
